package com.htc.controller;

import com.htc.common.ActionEvent;
import com.htc.constants.Constants;
import com.htc.dlc.EventsActivity;
import com.htc.dlc.fragment.FragmentWellnessOverview;
import com.htc.model.utils.EventsModel;
import com.htc.model.utils.WellnewssOverviewModel;

public class WellnessOverviewController {
	public static WellnessOverviewController instance;

	public static WellnessOverviewController getInstance() {
		if (instance == null)
			instance = new WellnessOverviewController();
		return instance;
	}

	public void handleViewEvent(ActionEvent e) {
		switch (e.action) {
		case Constants.GET_WELL_OVERVIEW:
			WellnewssOverviewModel.getInstance().handleControllerEvent(e);
			break;
		default:
			break;
		}
	}

	public void handleModelViewEvent(ActionEvent e) {
		switch (e.action) {
		case Constants.GET_WELL_OVERVIEW:
			FragmentWellnessOverview sender = (FragmentWellnessOverview) e.sender;
			sender.handleControllerViewEvent(e);
			break;

		default:
			break;
		}
	}
}
